import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {
    path: 'tabs',
    loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  },
  {
    path: 'auth',
    loadChildren: () => import('./pages/auth/auth-common/auth-common.module').then( m => m.AuthCommonPageModule)
  } , 
  {
    path: '',
    redirectTo: '/tabs/home',
    pathMatch: 'full'
  },
  {
    path: 'notifications',
    loadChildren: () => import('./pages/notifications/notifications.module').then( m => m.NotificationsPageModule)
  },
  {
    path: 'common-error',
    loadChildren: () => import('./pages/common-components/common-error/common-error.module').then( m => m.CommonErrorPageModule)
  },  {
    path: 'common-payment-password',
    loadChildren: () => import('./pages/common-components/common-payment-password/common-payment-password.module').then( m => m.CommonPaymentPasswordPageModule)
  },
  {
    path: 'common-selected-bank',
    loadChildren: () => import('./pages/common-components/common-selected-bank/common-selected-bank.module').then( m => m.CommonSelectedBankPageModule)
  },
  {
    path: 'common-no-payment-pwd',
    loadChildren: () => import('./pages/common-components/common-no-payment-pwd/common-no-payment-pwd.module').then( m => m.CommonNoPaymentPwdPageModule)
  }


];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})

export class AppRoutingModule {}
